package com.bml.architect.alibaba;

public class StepWrapper {

    private StepWrapper wrapper;

    private Step step;

    public StepWrapper(Step step){
        this.step = step;
    }

    void execute(){
        step.perform();
        if(wrapper != null){
            wrapper.execute();
        }

    }

    public StepWrapper getWrapper() {
        return wrapper;
    }

    public void setWrapper(StepWrapper wrapper) {
        this.wrapper = wrapper;
    }

    public Step getStep() {
        return step;
    }

    public void setStep(Step step) {
        this.step = step;
    }
}
